﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Fourth Coffee - @Page.Title</title>
    <link href="@Href("~/Styles/Site.css")" rel="stylesheet" />
    <link href="@Href("~/favicon.ico")" rel="shortcut icon" type="image/x-icon" />
</head>
<body>
    <div id="page">
        <div id="header">
            <p class="site-title"><a href="@Href("~/")">Fourth Coffee</a></p>
            <div id="navbar">
                <div id="logindisplay">               
                @if (WebSecurity.IsAuthenticated) {
                    <span>Welcome <b>@WebSecurity.CurrentUserName</b>!
                    [ <a href="@Href("~/Account/Logout")">Logout</a> ]</span>
                } else {
                    <span>[ <a href="@Href("~/Account/Login")">Login</a> ]</span>
                }
                </div>
                <ul id="menu">
                    <li><a href="@Href("~/")">Home</a></li>
                    <li><a href="@Href("~/About")">About Us</a></li>
                    @if (Roles.IsUserInRole("Admin")) {
                        <li><a href="@Href("~/Admin/Polls")">Polls</a></li>    
					}
                </ul>
            </div>
        </div>
        <div id="body">
            @RenderBody()
        </div>
        <div id="footer">
            &copy;@DateTime.Now.Year - Fourth Coffee
        </div>
    </div>
</body>
</html>